home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_292 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  647 b   |  28 lines

  1. on(press){
  2.    if(_root.micon._currentframe == 26)
  3.    {
  4.       if(_root.talk10 >= 2)
  5.       {
  6.          _root.indicount = 100;
  7.          _root.indialogue = "And... viola, PIGFLY!";
  8.          _root.micon.gotoAndStop(1);
  9.          _root.sfx.gotoAndStop(3);
  10.          i = 1;
  11.          while(i < 40)
  12.          {
  13.             if(_root.inven["box" + i]._currentframe == 49)
  14.             {
  15.                _root.inven["box" + i].gotoAndStop(50);
  16.             }
  17.             i++;
  18.          }
  19.          gotoAndStop(50);
  20.       }
  21.       else
  22.       {
  23.          _root.indicount = 100;
  24.          _root.indialogue = "Why would I do that?";
  25.       }
  26.    }
  27. }
  28.